from Products.CMFCore.utils import getToolByName
from zope.component import queryUtility
from Products.CMFCore.interfaces import ISiteRoot

def rename(obj, event):
#    import pdb
#    pdb.set_trace()
#     obj.setId('main.png')

    pass
    pa = obj.aq_inner.aq_parent
    pa.renameObject(obj.getId(),'main.png')
